<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h2>插槽</h2>
      <child>
        <span>🏀</span>
      </child>
    </div>

    <script src="./lib/vue2.js"></script>
    <script>
      const Child = {
        template: `
          <div>
            <div>111</div>
            <div>这是child子组件</div>
          </div>
        `,
      };

      new Vue({
        data() {
          return {
            count: 100,
          };
        },
        components: {
          Child,
        },
      }).$mount("#app");
    </script>
  </body>
</html>
